package arm_search_3.data;

/**
 *
 * @author
 */
public class ResultModel {

    @Override
    public String toString() {
        return "(docID : " + documentID + " matchCount: " + queryMatchCount + " weight : " + weight + ")";
    }

    public void merge(ResultModel another) {
        this.queryMatchCount += another.queryMatchCount;
        this.weight += another.weight;
    }

    public void setWeight(Float weight) {
        this.weight = weight;
    }

    public Float getWeight() {
        return weight;
    }

    public void setDocumentID(Integer documentID) {
        this.documentID = documentID;
    }

    public void setQueryMatchCount(Integer queryMatchCount) {
        this.queryMatchCount = queryMatchCount;
    }

    public Integer getDocumentID() {
        return documentID;
    }

    public Integer getQueryMatchCount() {
        return queryMatchCount;
    }

    public ResultModel(Integer docID, Integer matchCount, Float docWeight) {
        this.documentID = docID;
        this.queryMatchCount = matchCount;
        this.weight = docWeight;
    }
    private Integer documentID;
    private Integer queryMatchCount;
    private Float weight;
}
